<?php

function zz_time() {
  $time_string = '<time class="entry-date published" datetime="%1$s">发布于 <i>%2$s</i></time>';
  if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
    $time_string = '<time class="entry-date published" datetime="%1$s">发布于 <i>%2$s</i></time><time class="updated" datetime="%3$s">更新于 <i>%4$s</i></time>';
  }

  $time_string = sprintf( $time_string,
    get_the_date( DATE_W3C ),
    get_the_date(),
    get_the_modified_date( DATE_W3C ),
    get_the_modified_date()
  );

  return $time_string;
}
